package com.cup.plat.demo.service;

import java.util.List;
import java.util.Set;

/**
 *  redis服务定义
 * @author sheng.han
 *
 */
public interface RedisService {
	 
	boolean set(final String key, Object value);
    
	boolean set(final String key, Object value, Long expireTime);
    
    void remove(final String... keys);

	void removePattern(final String pattern);
    
	public void remove(final String key);
    
	public boolean exists(final String key);
    
	public Object get(final String key);
    
	public void lPush(String k,Object v);

	public List<Object> lRange(String k, long l, long l1);

	public void add(String key,Object value);

	public Set<Object> setMembers(String key);

	public void zAdd(String key,Object value,double scoure);

	public Set<Object> rangeByScore(String key,double scoure,double scoure1);
}
